using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class WheelLegInputer : BasicInputer
{
    private WheelLegRobotController controller;
    public bool input_flag = false;
    protected override void Start()
    {
        base.Start();
        controller = (WheelLegRobotController)control_target;
    }
    protected override void Control()
    {
        if (input_flag)
        {
            base.Control();
        }
        
        controller.target_x = -axis_values[1] * 5;
        controller.target_r += -axis_values[0] *Time.deltaTime*50;
        if (key_values[1])
        {
            controller.GetComponent<WLHeightController>().height_down -= Time.deltaTime;
        }
        if (key_values[0])
        {
            controller.GetComponent<WLHeightController>().height_down += Time.deltaTime;
        }
        
    }
}
